package com.ruoyi.stuinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stuinfo.mapper.DormitorybuildingMapper;
import com.ruoyi.stuinfo.domain.Dormitorybuilding;
import com.ruoyi.stuinfo.service.IDormitorybuildingService;

/**
 * 楼宇详情Service业务层处理
 * 
 * @author zc
 * @date 2025-05-13
 */
@Service
public class DormitorybuildingServiceImpl implements IDormitorybuildingService 
{
    @Autowired
    private DormitorybuildingMapper dormitorybuildingMapper;

    /**
     * 查询楼宇详情
     * 
     * @param buildingId 楼宇详情主键
     * @return 楼宇详情
     */
    @Override
    public Dormitorybuilding selectDormitorybuildingByBuildingId(String buildingId)
    {
        return dormitorybuildingMapper.selectDormitorybuildingByBuildingId(buildingId);
    }

    /**
     * 查询楼宇详情列表
     * 
     * @param dormitorybuilding 楼宇详情
     * @return 楼宇详情
     */
    @Override
    public List<Dormitorybuilding> selectDormitorybuildingList(Dormitorybuilding dormitorybuilding)
    {
        return dormitorybuildingMapper.selectDormitorybuildingList(dormitorybuilding);
    }

    /**
     * 新增楼宇详情
     * 
     * @param dormitorybuilding 楼宇详情
     * @return 结果
     */
    @Override
    public int insertDormitorybuilding(Dormitorybuilding dormitorybuilding)
    {
        return dormitorybuildingMapper.insertDormitorybuilding(dormitorybuilding);
    }

    /**
     * 修改楼宇详情
     * 
     * @param dormitorybuilding 楼宇详情
     * @return 结果
     */
    @Override
    public int updateDormitorybuilding(Dormitorybuilding dormitorybuilding)
    {
        return dormitorybuildingMapper.updateDormitorybuilding(dormitorybuilding);
    }

    /**
     * 批量删除楼宇详情
     * 
     * @param buildingIds 需要删除的楼宇详情主键
     * @return 结果
     */
    @Override
    public int deleteDormitorybuildingByBuildingIds(String[] buildingIds)
    {
        return dormitorybuildingMapper.deleteDormitorybuildingByBuildingIds(buildingIds);
    }

    /**
     * 删除楼宇详情信息
     * 
     * @param buildingId 楼宇详情主键
     * @return 结果
     */
    @Override
    public int deleteDormitorybuildingByBuildingId(String buildingId)
    {
        return dormitorybuildingMapper.deleteDormitorybuildingByBuildingId(buildingId);
    }
}
